import React, { Component, PureComponent } from 'react';
import { StyleSheet, Text, View, Button, DeviceEventEmitter } from 'react-native';
import styles from 'src/styles';

function Parent({ navigation }) {
  return (
    <View style={styles.container}>
      <Text>PARENT</Text>
      <Button onPress={() => {
        navigation.navigate('setting');
      }} title='Go Setting' />
      <Button onPress={() => {
        navigation.navigate('userInfo', { title: 'Member Info' });
      }} title='Go User Info' />
    </View>
  )
}

export default Parent;
